from langchain_community.embeddings import ModelScopeEmbeddings

model_id = "damo/nlp_corom_sentence-embedding_english-base"
embeddings_model = ModelScopeEmbeddings(model_id=model_id)

embeddings = embeddings_model.embed_documents(
    'Hi there'
)
print(embeddings)

query = embeddings_model.embed_query('Hi there')
print(query)

